<extend name="Index/base" />
<block name="main">
    <section class="section main">
        <div class="book-type">
            <div class="shower">
                欢迎来到我网，在这里你可以任意浏览、分享、编辑文档！
            </div>
        </div>
        <div class="head-nav">{$cate}</div>
        <div class="book-infoes">
            <ul class="clearfix lists">
                <if condition="$list">
                    <volist name="list" id="vo">
                        <li><div class="info">
                            <div class="info-inner">
                                <h2><a href="{:U('/show/'.$vo['id'])}" title="{$vo.name}">{$vo.name}</a></h2>
                                <p class="info-icon">
                                    <span title="收藏人数"><i class="icon-star"></i> {$vo.collect} </span><span title="创建时间"><i class="icon-time"></i> {$vo.create|date="Y-m-d",###} </span>
                                </p>
                                <p class="info-desc">{$vo.desc}</p>
                            </div>
                            <div class="info-footer">
                                {$vo.author}
                            </div>
                        </div></li>
                    </volist>
                    <else />
                    <p class="no-msg">该分类下暂无文档...</p>
                </if>
            </ul>
        </div>
        {$page}
    </section>
</block>
<block name="js">
    <script>
        $(document).ready(function(){
            var mark = {$mark|default=0};
            if(mark != 0){
                $('.head-nav-row a[cid="'+mark+'"]').addClass('cur');
            }
        });
    </script>
</block>